import java.rmi.Naming;

import com.distribuida.comum.Cliente;
import com.distribuida.interfaces.ServidorInterface;


public class ClientImpl {
	public static void main (String[] args) {
		try {
			ServidorInterface nota = (ServidorInterface) Naming.lookup ("//localhost/Servidor");
			System.out.println ("Adicionando Cliente: 1" + nota.adicionaCliente(new Cliente(1)));
			Thread.sleep(20000);
			System.out.println ("Adicionando Cliente: 2" + nota.adicionaCliente(new Cliente(2)));
			Thread.sleep(60000);
			nota.atualiza(1);
		} catch (Exception e) {
			System.out.println ("NotasClient failed.");
			e.printStackTrace();
		}
	}
	

}
